<?php
class sample extends module {
	public $title = "Sample module";
	
	public function run() {
		$this->xml->sampleXMLtag = _("Hello world!");
		$this->xml->sampleXMLtag['date'] = date('d-m-Y H:i:s');
		
		$query = 'SELECT
			Code AS "'._("Code").'",
			Name AS "'._("Name").'",
			Continent AS "'._("Continent").'",
			SurfaceArea AS "'._("Surface area (km²)").'",
			Population AS "'._("Population").'"
			FROM country WHERE 1';
		new sqlTable($this, $query, $this->engine->getUrlParam(0));
	}
	
	public function ajaxMD5() {
		$this->frame = "blank";
		$this->xml->response = md5($_POST['text']);
	}
}
?>